package com.woniuxy.commons.request;

public enum ResultStatus {
    CLIENT_AUTHENTICATION_FAILED( 1001, "客户端认证失败"),
    USERNAME_OR_PASSWORD_ERROR(1002, "用户名或密码错误"),
    UNSUPPORTED_GRANT_TYPE(1003, "不支持的认证模式"),
    NO_PERMISSION( 403, "无权限访问！"),
    UNAUTHORIZED(500, "系统错误"),
    TOKEN_EXPIRE(701,"token过期"),
    INVALID_TOKEN(702,"无效的token"),
    REFRESH_TOKEN_EXPIRE(703,"刷新token过期"),
    INVALID_REFRESH_TOKEN(704,"无效的refresh_token"),
    USER_ACCOUNT_LOCKED(705,"用户账号被锁定");


    // 状态码
    private int code;
    // 消息
    private String msg;
    // 构造方法
    ResultStatus(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    public String getMsg() {
        return msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}